home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / fileutil / fileutils-3.16.tar.gz / fileutils-3.16.tar / fileutils-3.16 / intl / Makefile.in < prev    next >
Makefile  |  1996-11-27  |  6KB  |  204 lines

  1. # Makefile for directory with message catalog handling in GNU NLS Utilities.
  2. # Copyright (C) 1995, 1996 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22.  
  23. srcdir = @srcdir@
  24. top_srcdir = @top_srcdir@
  25. VPATH = @srcdir@
  26.  
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29. transform = @program_transform_name@
  30. libdir = $(exec_prefix)/lib
  31. includedir = $(prefix)/include
  32. datadir = $(prefix)/@DATADIRNAME@
  33. localedir = $(datadir)/locale
  34. gnulocaledir = $(prefix)/share/locale
  35. gettextsrcdir = @datadir@/gettext/intl
  36. aliaspath = $(localedir):.
  37. subdir = intl
  38.  
  39. INSTALL = @INSTALL@
  40. INSTALL_DATA = @INSTALL_DATA@
  41. MKINSTALLDIRS = @MKINSTALLDIRS@
  42.  
  43. AR = ar
  44. CC = @CC@
  45. RANLIB = @RANLIB@
  46.  
  47. DEFS = -DLOCALEDIR=\"$(localedir)\" -DGNULOCALEDIR=\"$(gnulocaledir)\" \
  48. -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" @DEFS@
  49. CFLAGS = @CFLAGS@
  50.  
  51. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
  52.  
  53. HEADERS = $(COMHDRS) libgettext.h loadinfo.h
  54. COMHDRS = gettext.h gettextP.h hash-string.h
  55. SOURCES = $(COMSRCS) intl-compat.c cat-compat.c
  56. COMSRCS = bindtextdom.c dcgettext.c dgettext.c gettext.c \
  57. finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c \
  58. explodename.c
  59. OBJECTS = @INTLOBJS@ bindtextdom.o dcgettext.o dgettext.o gettext.o \
  60. finddomain.o loadmsgcat.o localealias.o textdomain.o l10nflist.o \
  61. explodename.o
  62. CATOBJS = cat-compat.o ../po/cat-id-tbl.o
  63. GETTOBJS = intl-compat.o
  64. DISTFILES.common = ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in \
  65. xopen-msg.sed $(HEADERS) $(SOURCES)
  66. DISTFILES.normal = VERSION
  67. DISTFILES.gettext = libintl.glibc intlh.inst.in
  68.  
  69. .SUFFIXES:
  70. .SUFFIXES: .c .o
  71. .c.o:
  72.     $(COMPILE) $<
  73.  
  74. INCLUDES = -I.. -I. -I$(top_srcdir)/intl -I$(top_srcdir)/lib
  75.  
  76. all: all-@USE_INCLUDED_LIBINTL@
  77.  
  78. all-yes: libintl.a intlh.inst
  79. all-no:
  80.  
  81. libintl.a: $(OBJECTS)
  82.     rm -f $@
  83.     $(AR) cru $@ $(OBJECTS)
  84.     $(RANLIB) $@
  85.  
  86. ../po/cat-id-tbl.o: ../po/cat-id-tbl.c $(top_srcdir)/po/$(PACKAGE).pot
  87.     cd ../po && $(MAKE) cat-id-tbl.o
  88.  
  89. check: all
  90.  
  91. # This installation goal is only used in GNU gettext.  Packages which
  92. # only use the library should use install instead.
  93.  
  94. # We must not install the libintl.h/libintl.a files if we are on a
  95. # system which has the gettext() function in its C library or in a
  96. # separate library or use the catgets interface.  A special case is
  97. # where configure found a previously installed GNU gettext library.
  98. # If you want to use the one which comes with this version of the
  99. # package, you have to use `configure --with-included-gettext'.
  100. install: install-exec install-data
  101. install-exec: all
  102.     if test "$(PACKAGE)" = "gettext" \
  103.        && test '@INTLOBJS@' = '$(GETTOBJS)'; then \
  104.       if test -r $(MKINSTALLDIRS); then \
  105.         $(MKINSTALLDIRS) $(libdir) $(includedir); \
  106.       else \
  107.         $(top_srcdir)/mkinstalldirs $(libdir) $(includedir); \
  108.       fi; \
  109.       $(INSTALL_DATA) intlh.inst $(includedir)/libintl.h; \
  110.       $(INSTALL_DATA) libintl.a $(libdir)/libintl.a; \
  111.     else \
  112.       : ; \
  113.     fi
  114. install-data: all
  115.     if test "$(PACKAGE)" = "gettext"; then \
  116.       if test -r $(MKINSTALLDIRS); then \
  117.         $(MKINSTALLDIRS) $(gettextsrcdir); \
  118.       else \
  119.         $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
  120.       fi; \
  121.       $(INSTALL_DATA) VERSION $(gettextsrcdir)/VERSION; \
  122.       cd $(srcdir) && \
  123.       dists="$(DISTFILES.common)"; \
  124.       for file in $$dists; do \
  125.         $(INSTALL_DATA) $$file $(gettextsrcdir)/$$file; \
  126.       done; \
  127.     else \
  128.       : ; \
  129.     fi
  130.  
  131. # Define this as empty until I found a useful application.
  132. installcheck:
  133.  
  134. uninstall:
  135.     dists="$(DISTFILES)"; \
  136.     for file in $$dists; do \
  137.       rm -f $(gettextsrcdir)/$$file; \
  138.     done
  139.  
  140. info dvi:
  141.  
  142. $(OBJECTS): ../config.h libgettext.h
  143. bindtextdom.o finddomain.o loadmsgcat.o: gettextP.h gettext.h loadinfo.h
  144. dcgettext.o: gettextP.h gettext.h hash-string.h loadinfo.h
  145.  
  146. tags: TAGS
  147.  
  148. TAGS: $(HEADERS) $(SOURCES)
  149.     here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  150.  
  151. id: ID
  152.  
  153. ID: $(HEADERS) $(SOURCES)
  154.     here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
  155.  
  156.  
  157. mostlyclean:
  158.     rm -f *.a *.o core core.*
  159.  
  160. clean: mostlyclean
  161.  
  162. distclean: clean
  163.     rm -f Makefile ID TAGS po2msg.sed po2tbl.sed libintl.h
  164.  
  165. maintainer-clean: distclean
  166.     @echo "This command is intended for maintainers to use;"
  167.     @echo "it deletes files that may require special tools to rebuild."
  168.  
  169.  
  170. # GNU gettext needs not contain the file `VERSION' but contains some
  171. # other files which should not be distributed in other packages.
  172. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  173. dist distdir: Makefile $(DISTFILES)
  174.     if test "$(PACKAGE)" = gettext; then \
  175.       additional="$(DISTFILES.gettext)"; \
  176.     else \
  177.       additional="$(DISTFILES.normal)"; \
  178.     fi; \
  179.     for file in $(DISTFILES.common) $$additional; do \
  180.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  181.         || cp -p $(srcdir)/$$file $(distdir); \
  182.     done
  183.  
  184. dist-libc:
  185.     tar zcvf intl-glibc.tar.gz $(COMSRCS) $(COMHDRS) libintl.h.glibc
  186.  
  187. Makefile: Makefile.in ../config.status
  188.     cd .. \
  189.       && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  190.  
  191. # The dependency for intlh.inst is different in gettext and all other
  192. # packages.  Because we cannot you GNU make features we have to solve
  193. # the problem while rewriting Makefile.in.
  194. @GT_YES@intlh.inst: intlh.inst.in ../config.status
  195. @GT_YES@    cd .. \
  196. @GT_YES@    && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
  197. @GT_YES@      $(SHELL) ./config.status
  198. @GT_NO@.PHONY: intlh.inst
  199. @GT_NO@intlh.inst:
  200.  
  201. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  202. # Otherwise a system limit (for SysV at least) may be exceeded.
  203. .NOEXPORT:
  204.